package cn.lingyangwl.agile.dynamic.config;

import cn.lingyangwl.agile.dynamic.config.core.ScanConfigListener;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author shenguangyang
 */
@Component
public class ConfigRunner implements ApplicationRunner {
    @Resource
    private ScanConfigListener configListener;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        configListener.scan();
    }
}
